﻿using System;
using System.Globalization;

namespace CommonClasses
{
   public class DateToString
    {

        /// <summary>
        /// Converts Date to Formated String
        /// </summary>
        /// <returns>String</returns>
        /// <remarks>This Class Not Complete </remarks>

        public string DTS(DateTime dt)
        {
            // The String: dddd, dd MMMM yyyy-HH:mm Should be removed from
            // "ru-RU" - Should be removed
            return dt.ToString("dddd, dd MMMM yyyy-HH:mm", new System.Globalization.CultureInfo("ru-RU"));

        }

        /// <summary>
        /// Converts Date to Formated String
        /// </summary>
        /// <returns>String</returns>
        /// <remarks></remarks>

        public string convertDateToString(DateTime dt,String dateFormat,CultureInfo cullt)
        {

            return dt.ToString(dateFormat, cullt);

        }
    }
}
